package com.ssfeng.youxia.config;

import com.ssfeng.youxia.services.TestAopService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * Created by liyuhang on 2020-04-20.
 */
@ComponentScan({"com.ssfeng.youxia.aop",
        "com.ssfeng.youxia.SpringProcessor"})
@Configuration
@EnableAspectJAutoProxy(proxyTargetClass=false)
public class TestConfig {

    @Bean
    public TestAopService testAopService(){
        return new TestAopService();
    }
}
